package day0301;

import java.util.Arrays;

public class StringDemo {
    public static void main(String[] args) {
        String email = "12345678@qq.com.cn";
        String regex ="[\\w]+@[\\w]+([\\.\\w]+)+";
        boolean str =email.matches(regex);
        System.out.println(str);

        email =email.replaceAll("[\\d]+","hh");
        System.out.println(email);

        String[] arr=email.split("[.]");
        System.out.println(Arrays.toString(arr));
    }
}
